<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店铺订单详情页 - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/global.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/layout.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/buy.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/order.css" type="text/css" rel="stylesheet" />

<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});
</script>
</head>
<body>
[#include "../include/shop_top.html"/]
<div class="w960 mt10">
  [#include "店铺中心_导航.html"/]
     <div id="container" class="user_right">
     	  <div class="usercenter_position"><span>订单详情</span></div> 
	     	  <form class="ropt">
					<input type="submit" value="返回列表"
						onclick="this.form.action='returnList.jspx?pageNo={pageNo}';" />
			  </form>
	     	 <form id="jvForm" method="post" style="padding-top:5px">
				<input type="hidden" name="id" value="${order.returnOrder.id}"/>
				<input type="submit" value="审核" onclick="this.form.action='${base}/orderReturn/returnaffirm.jspx'" [#if order.returnOrder.status!=1]disabled[/#if]/>
				<input type="submit" value="退回" onclick="this.form.action='${base}/orderReturn/returnsendback.jspx'" [#if order.returnOrder.status!=1]disabled[/#if]/>
				<input type="submit" value="收货" onclick="this.form.action='${base}/orderReturn/returnsalesreturn.jspx'" [#if order.returnOrder.status!=4]disabled[/#if] />
				<input type="submit" value="退款" onclick="this.form.action='${base}/orderReturn/returnreimburse.jspx'" [#if order.returnOrder.returnType=1][#if order.returnOrder.status!=5]disabled[/#if][#else][#if order.returnOrder.status!=2]disabled[/#if][/#if] />
				<input type="submit" value="完成" onclick="this.form.action='${base}/orderReturn/returnaccomplish.jspx'" [#if order.returnOrder.status!=6]disabled[/#if] />
			 </form>
          <div class="order_infod mt10">
           <div class="order_conhead">
	    	  <ul>
				<li>订单编号：<span style="color:#fe0000;">${order.code}</span></li>
				<li>下单日期：<span style="color:#fe0000;">${order.createTime}</span></li>
				<li>订单状态<span style="color:#fe0000;">
					[#if order.status=3]
						[@s.m "order.status.${order.status}"/]
					[#elseif order.status=4]
						[@s.m "order.status.${order.status}"/]
                    [#elseif order.paymentStatus=1]
                    	[@s.m "order.paymentStatus.${order.paymentStatus}"/]
                    	&nbsp;[#if order.shippingStatus=2]
                    	[@s.m "order.shippingStatus.${order.shippingStatus}"/]
                    [/#if]
                    [#elseif order.paymentStatus=2]
                    	[@s.m "order.paymentStatus.${order.paymentStatus}"/]
                    	&nbsp;[@s.m "order.shippingStatus.${order.shippingStatus}"/]
                    [/#if]
                </span></li>
			 </ul>
			 </div>
	    	<div class="order_continf">
					<dl>
						<dt>收货人信息</dt>
			            <dd>收货人：${order.receiveName!}</dd>
			            <dd>收货地址：${order.receiveAddress!} </dd>
			            <dd>手机号码：${order.receiveMobile!}</dd>
			            <dd>邮政编码：${order.receiveZip!}</dd>
				    </dl>
						<dl>
							<dt>配送信息</dt>
							<dd>送货方式：${order.shipping.name}</dd>
			        		<dd>运费：&yen;${order.freight!}</dd>
			        		<dd>物流单号: ${order.invoiceNo!}</dd>
			      		</dl>
	      		<dl>
	        		<dt>支付信息</dt>
	        		<dd>支付状态：[#if order.status=3][@s.m "order.status.${order.status}"/][#elseif order.status=4][@s.m "order.status.${order.status}"/]
                     	[#elseif order.paymentStatus=1][@s.m "order.paymentStatus.${order.paymentStatus}"/]&nbsp;[#if order.shippingStatus=2][@s.m "order.shippingStatus.${order.shippingStatus}"/][/#if]
                     	[#elseif order.paymentStatus=2][@s.m "order.paymentStatus.${order.paymentStatus}"/]&nbsp;[@s.m "order.shippingStatus.${order.shippingStatus}"/][/#if]</dd>
					<dd>支付方式： ${order.payment.name}</dd>
				</dl>
				<dl>
					<dt>积分信息</dt>
					<dd>可获积分：￥${order.score!0}[#if order.status==20](可用积分)[#else](冻结中)[/#if]
						<a class="hblue" href="${base}/xsrm/20.htm" target="_blank">查看积分规则</a>
					</dd>
			   </dl>
			      <dl>
			            <dt>退款详情</dt>
			            <dd>退款编号：${orderReturn.code!}</dd>
			            <dd>申请时间：${orderReturn.createTime?string("yyyy-MM-dd HH:mm:ss")!}</dd>
			            <dd>退款类型：[@s.m "orderReturn.returnType.${order.returnOrder.returnType!}"/]</dd>
			            <dd>支付宝账号：${orderReturn.alipayId}</dd>
			            <dd>退款原因：${orderReturn.shopDictionary.name!}</dd>
			            <dd>退款说明：${orderReturn.reason!}</dd>
			            <dd>给客户提供的发货地址：${orderReturn.shippingAddress!}</dd>
			            <dd>需要提醒客户的事情：${orderReturn.remind!}</dd>
			   
              [#if orderReturn.pictures??]
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                   [#list orderReturn.pictures as p]
                   <td>
                   <table id="picTable${p_index}"  width="100" border="0" cellspacing="0" cellpadding="0" >
                     <tr>
	                  <td  height="100">
	                     <img id="preImg${p_index}" src="${uploadRoot}${p.imgPath}" alt="预览"  style="width:100px;height:100px;background-color:#ccc;border:1px solid #333"/>    
	                  </td>
	                  </tr>
	                  <tr>
	                   <td>
	                   	  <div style="width:100px;height:50px;">[@text_cut s=p.description len='20' append=''/]</div>
	                    </td>
	                  </tr>
                  </table>
                  </td>
	             [/#list]
	              </tr>
	             </table>
	             [/#if]
				    </dl>
		      	<div class="order_info_list mt10">
	        		<h3>商品信息</h3>
	        			<div class="order_info_list mt10" style="border:1px solid #ccc;overflow-y:auto; overflow-x:auto;height:270px;">
		    			<table cellspacing="1" cellpadding="0" border="0" class="product_table">
		      			<tbody>
							<tr><th>商品图片</th><th>商品名称</th><th>价格</th><th>单重</th><th>数量</th><th>金额小计</th></tr>
		        			[#list order.items as item]
		        			<tr>
		        			    <td class="pro"><a class="pic" href="http://www.yihaodian.com/product/1845672_3" target="_blank"><img src="${root}${item.product.productExt.coverImg!}"/></a></td>
		          				<td class="pro1" align="left">
									<p><a href="http://www.yihaodian.com/product/1845672_3" target="_blank">${item.product.name!}</a></p>
		          				</td>
		          				<td align="center" width="50">[#if item.productFash??]${item.salePrice!}[#else]${item.salePrice!}[/#if]</td>
		          				<td align="center" width="40">${item.product.weight}</td>
		          				<td align="center" width="40">${item.count!}</td>
		          				<td align="center" width="70">${item.salePrice*item.count!}</td>
		        			</tr>
		        			[/#list]
						</tbody>
		    			</table>
		    			</div>
		        		<div class="order_crash">
		        			<ul>
		        				<li><span>商品总金额：</span>&yen;${order.productPrice!}</li>
		        				<li><span>运费：</span>+&yen;${order.freight!}</li>
					           	<li class="order_crash_total"><span>发货前需先支付：</span><em>&yen;${order.total!}</em></li>
		        					
		        			</ul>
		        		</div>
	      		</div>
	    	</div>
	    </div>
  </div>
  
  
     <div class="clear"></div>
</div>
[#include "../include/footer_information_bar.html"/]
</body>
</html>
